package com.caldremch.androidfoundation.base;


/**
 *
 * @author Caldremch
 * @date 2018/11/3
 * @Email caldremch@163.com
 * @describe BasePresenter
 * @param <T> Type
 **/
public class BasePresenter<T extends BaseContract.BaseView> implements BaseContract.BasePresenter<T> {


    protected T mView;


    @Override
    public void onAttachView(T view) {
        this.mView = view;
    }

    @Override
    public void onDetachView() {
        if (mView != null) {
            mView = null;
        }
    }
}
